<?php
/*
Plugin Name: Foundry Developer
Plugin URI: http://graphicsfoundry.co.uk/foundry-developer
Description: Admin panel developer tools
Author: Ian Stanley
Version: 0.1
Author URI: http://linked.in/in/iandstanley
License: GPLv3
*/
/*  Copyright 2013  Ian Stanley  (email : ian@graphicsfoundry.co.uk)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/

/************************************
** Activation and deactivation hooks
*/

register_activation_hook( __FILE__, 'gf_foundrydeveloper_install' );
function gf_foundrydeveloper_install() {
 	  /* 
    ** Verify Compatibility & Deactivate if WP not compatible
    ** Store Plugin options
    */
    if ( version_compare( get_bloginfo( 'version' ), '3.5', '<' ) ) {
        deactivate_plugins( basename( __FILE__ ) ); // Deactivate our plugin
    }

    /* Store the plugins options
		*/
    gf_foundrydeveloper_options = array {
    	my_option => 'some value';
    };
    update_option( 'gf_foundrydeveloper_options', $gf_foundrydeveloper_options);
}
register_activation_hook(__FILE__, gf_foundrydeveloper_uninstaller);
function gf_foundrydeveloper_activate() {
	// register the uninstall function 
	register_uninstall_hook( __FILE__, 'gf_foundrydeveloper_uninstaller');
}

register_deactivation_hook( __FILE__, 'gf_foundrydeveloper_uninstall' );
function gf_foundrydeveloper_uninstall() {
    /* Store the plugins options
		*/
    gf_foundrydeveloper_options = array {
    	my_option => 'some value';
    };
    update_option( 'gf_foundrydeveloper_options', $gf_foundrydeveloper_options);
}




?>
